<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<script type="text/javascript">
	$(function(){
		$("#checkAll").click(function(){
			$(".check").prop('checked', $(this).is(":checked"));
		});
		
	});


</script>

	<div id="adminMode" class="memberSearch">
		<div id="memberSearchbar">
			<h3>전체 회원 관리</h3>
			<form name="memberAllSearch">
				<table style="border: 1px solid gray; width:800px; height:60px;">
					<tr>
						<td>
							회원검색 : 
				            <select>
				                <option value="1">아이디</option>    
				                <option value="2">이름</option>    
				                <option value="3">별명</option>    
				            </select> 
				            <input type="text" name="memberSearch" size="50"/>
				            <input type="submit" value="검색"/>
				       </td>
	            	</tr>
	            </table>
	        </form>
        </div>
        
        <div style="padding: 15px 0px"></div>
        
        <div id="MemberAllList">
        	전체 회원수 : 
        	<table style="border: 1px solid gray; width: 800px; height: 60px; text-align: center">
				<tr style="background: skyblue">
					<td style="width: 10px"><input type="checkbox" id="checkAll">	</td>
					<td style="width: 350px">별명(아이디)</td>
					<td style="width: 100px">이름</td>
					<td style="width: 150px">가입일</td>
					<td style="width: 60px">등급</td>
					<td style="width: 60px">성별</td>
					<td style="width: 70px">탈퇴여부</td>
            	</tr>
            	<c:forEach var="member" items="${memberList }">
            	<tr>
					<td><input type="checkbox" class="check"></td>
					<td>${member.memberNickname }(${member.memberId })</td>
					<td>${member.memberName }</td>
					<td>${member.inputDate }</td>
					<td>${member.memberLevel }</td>
					<td>${member.memberGender }</td>
					<td>${member.memberLeaveYn }</td>
            	</tr>
            	</c:forEach>
            	<tr>
					<td><input type="checkbox" class="check"></td>
					<td>
						선택회원을 
						<input type="button" value="강제탈퇴">
						<input type="button" value="탈퇴취소">
						<input type="button" value="쪽지">
					</td>
            	</tr>
            	
	        </table>
	        <br>
        페이징
        
        <br><br>
        </div>
        
	
	</div>

